package org.alex.nettychat.netty.learn.learn2;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * @author : alex
 */
public class ChannelInboundHandlerC extends ChannelInboundHandlerAdapter {
    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        System.out.println("ChannelInboundHandlerC:" + msg);
        ctx.channel().writeAndFlush("AAA");
        super.channelRead(ctx, msg);
    }
}
